<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Send data for a task (deprecated)</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="gearmantask.returncode.html">GearmanTask::returnCode</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="gearmantask.sendworkload.html">GearmanTask::sendWorkload</a></div>
 <div class="up"><a href="class.gearmantask.html">GearmanTask</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="gearmantask.senddata" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">GearmanTask::sendData</h1>
  <p class="verinfo">(PECL gearman &lt;= 0.5.0)</p><p class="refpurpose"><span class="refname">GearmanTask::sendData</span> &mdash; <span class="dc-title">Send data for a task (deprecated)</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-gearmantask.senddata-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span> <span class="methodname"><strong>GearmanTask::sendData</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$data</code></span>
   )</div>

  <p class="para rdfs-comment">
  </p>
  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">此函数是<em class="emphasis">实验性</em>的。此函数的表象，包括名称及其相关文档都可能在未来的
PHP 发布版本中未通知就被修改。使用本函数风险自担 。</p></div>

 </div>


 <div class="refsect1 parameters" id="refsect1-gearmantask.senddata-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">data</code></em></dt>

     <dd>

      <p class="para">
       Data to send to the worker.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-gearmantask.senddata-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   The length of data sent, or <strong><code>FALSE</code></strong> if the send failed.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-gearmantask.senddata-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="methodname"><a href="gearmantask.recvdata.html" class="methodname" rel="rdfs-seeAlso">GearmanTask::recvData()</a> - Read work or result data into a buffer for a task</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="gearmantask.returncode.html">GearmanTask::returnCode</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="gearmantask.sendworkload.html">GearmanTask::sendWorkload</a></div>
 <div class="up"><a href="class.gearmantask.html">GearmanTask</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
